import cv2



def cv_show(name,img) :
    cv2.imshow(name,img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()


if __name__  == '__main__' :
    im = cv2.imread('./images/guoguo.jpg')
    gray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY)
    ret,thresh = cv2.threshold(gray,80,255,cv2.THRESH_BINARY)
    cv_show('thresh',thresh)

